﻿<%@ page language="java" import="com.jkxt.model.*"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人健康档案系统</title>
    <link rel="stylesheet" href="<%=basePath %>css/index.css"/>
    <link href="<%=basePath %>umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="<%=basePath %>umeditor/third-party/jquery.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<%=basePath %>umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="<%=basePath %>umeditor/umeditor.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>umeditor/lang/zh-cn/zh-cn.js"></script>

</head>
<body>
<!-- 全站公用主导航  -->
<div class="sw-hd">
  <div class="sw-top">
    <div class="layout">
      <div class="sw-top-logo">
        <h1 class="seo">个人健康系统</h1>
        <a href="<%=basePath%>index/list.do">个人健康系统</a> </div>
      <div class="sw-top-slogan"><a href="#"><img src=""></a></div>
				<div class="sw-top-se">
					<form name="formsearch" action="<%=basePath%>index/list.do" id="global_search_form" method="post">
						 <input name="title"
							class="sw-input" autocomplete="off" placeholder="档案号搜索："
							maxlength="60"> <input type="submit" class="sw-input-btn"
							value="搜索">
					</form>
				</div>
    </div>
  </div>
  <div class="sw-nav">
    <div class="layout">
      <div class="sw-nav fleft">
        <ul>
          <li><a href="<%=basePath%>index/list.do">健康信息</a></li>
          <li><a href="<%=basePath%>index/record.do">记录健康信息</a></li>
        </ul>
      </div>
    </div>
  </div>
</div>
<!--全站公用主导航 END -->


<div class="sw-main clearfix">
  <!-- 面包屑 START -->
  <!-- 面包屑 START -->
<div class="sw-crumb clearfix mb15">
  <ul class="fleft">
    <li><em>当前位置：</em> <a href='<%=basePath %>index/toUpdateRecord.do?id=${record.id}'>编辑健康档案</a></li>
  </ul>
</div>
<!-- 面包屑 END -->
  <!-- 面包屑 END -->
  <!-- 左侧容器 START -->
  <div class="sw-w960 fleft">
    <div class="sw-modBox sw-excerpt">
     <form action="<%=basePath%>index/UpdateRecordById.do" method="post">
       <input type="hidden" name="id" value="${record.id}" />
       <input type="hidden" name="userId" value="${user.id}" />
       <input type="hidden" id="content" name="content" />
       <span style=" color: red;font-size: 12px;">${message}</span><br/>
       <span>档案号：</span><input class="title_input" type="text" name="title" value="${record.title}" /><br/>
       <span>描述：</span><input class="intro_input" type="text" name="intro" value="${record.intro}"/><br/>
       <span>记录</span>
       <!--style给定宽度可以影响编辑器的最终宽度-->
       <script type="text/plain" id="myEditor" style="width:900px;height:350px;">
                ${record.content}
       </script>
       <br/>
       <div class="intro_submit">
         <input type="submit" onclick="getContent()" value="保存并返回" >
       </div>
       <br/>
      </form>
    </div>
  </div>
</div>
<!-- 页尾 START -->
<div class="f_menu clearfix"></div>
<div class="copright">
  <a target='_blank' href='http://www.jyzhz.com/'>惠州市金燕子科技有限公司</a>版权所有
</div>
<script type="text/javascript">
    //实例化编辑器
    var um = UM.getEditor('myEditor');
    
    function getContent() {
         $("#content").val( UM.getEditor('myEditor').getContent());
    }
    
    
    
</script>
</body>
</html>